]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
network: Make the Connect button insensitive when on the current network
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 19 Aug 2013 14:43:52 +0000 (10:43 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 19 Aug 2013 15:24:55 +0000 (11:24 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=706136

js/ui/status/network.js

index a06a5ce5283d8a9186a0ca3338ad8597ae7dd409..55ae01b53f3e0192816a41405f6b4397b6e8fb75 100644 (file)
@@ -627,7 +627,7 @@ const NMWirelessDialog = new Lang.Class({
     },
 
     _updateSensitivity: function() {
-        let connectSensitive = this._selectedNetwork != null;
+        let connectSensitive = this._selectedNetwork && (this._selectedNetwork != this._activeNetwork);
         this._connectButton.reactive = connectSensitive;
         this._connectButton.can_focus = connectSensitive;
     },